/*	Based on SimpleBible Copyright (C) 2009  Tom Woiccak, Jev Vandegrift 
 *
 *  This file is part of Simple Bible.
 *
 *  Simple Bible is free software: you can redistribute it and/or modify
 *  it under the terms of the GNU General Public License as published by
 *  the Free Software Foundation, either version 3 of the License, or
 * 	(at your option) any later version.
 *
 *  Simple Bible is distributed in the hope that it will be useful,
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *  GNU General Public License for more details.
 *
 *  You should have received a copy of the GNU General Public License
 *  along with Simple Bible.  If not, see <http://www.gnu.org/licenses/>.
 *
 */

function GplAssistant() {	
}
GplAssistant.prototype.setup = function(){

		//About
		this.controller.setupWidget(Mojo.Menu.appMenu, {
			omitDefaultItems: true
		}, {
			visible: true,
			items: [
      		Mojo.Menu.editItem,
			{ label: "Disclaimer", command: "do-disclaimer" },					
				{ label: "License", command: "do-license" },
				{ label: "Help", command: "do-help" }
			]
		});

	//***TEXT SCROLLER BOX ****** 
	this.controller.setupWidget("menuScroller",{},{mode: 'vertical'});
	
//	this.appMenuModel = {
//		visible: false,
//		items: [
	
//		]
//	};
//	this.controller.setupWidget(Mojo.Menu.appMenu, {omitDefaultItems: true}, this.appMenuModel);
}
GplAssistant.prototype.activate = function(event) {
	    if (this.controller.stageController.setWindowOrientation) {
	        this.controller.stageController.setWindowOrientation("free");
	    }
}
GplAssistant.prototype.deactivate = function(event) {
}
GplAssistant.prototype.cleanup = function(event) {
}
GplAssistant.prototype.showDialogBox = function(title,message){
		this.controller.showAlertDialog({
		onChoose: function(value) {},
		title:title,
		message:message,
		choices:[ {label:'OK', value:'OK', type:'color'} ]
	});
}

